package com.spa.infrastructure.service.sms;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "sms")
public class ApplicationConfiguration {

    /**
     *  是否发送短信
     *  值为true,则发送真实短信
     *  值为false,则不发送短信，只会把验证码写入缓存，提供验证
     */
    public boolean flagSendSms;

    /**
     * 是否发送语音
     */
    public boolean flagSendVoiceSms;

    /**
     * 测试情况下，默认验证码
     */
    public String defaultCode;

    /**
     * 验证码过期时间
     */
    public int codeTimeout;

}